/**
 * Created by bo.wang on 2022/3/6.
 */
import Mind from "./pages/mind/Mind"
import Test from "./pages/test/Test"
import Flow from "./pages/flow/Flow"
import NotFoundPage from "./pages/common/notFound/NotFoundPage"
import Welcome from "./pages/common/welcome/Welcome"
import MainLayout from "./layout/main/MainLayout"

interface RouterDataInterface {
    text: string,
    path: string,
    icon?: any,
    show_menu?: boolean,
    component?: any,
    children?: Array<RouterDataInterface>
}


export const Router: Array<RouterDataInterface> = [
    {
        text: "main",
        path: 'main',
        show_menu: true,
        component: MainLayout,
        children: [
            {
                text: "思维导图",
                show_menu: true,
                path: 'mind',
                component: Mind,
            }, {
                text: "流程图",
                path: 'flow',
                show_menu: true,
                component: Flow,
            }, {
                text: "测试",
                path: 'test',
                show_menu: true,
                component: Test,
            }, {
                text: "404",
                path: '404',
                show_menu: false,
                component: NotFoundPage,
            }, {
                text: "welcome",
                path: 'welcome',
                show_menu: false,
                component: Welcome,
            }
        ]
    }
]